from flask_script import Manager
from flask_migrate import MigrateCommand
from info import create_app

# 创建一个app
app = create_app('dev')
# 创建托管对象
mgr = Manager(app)


# 将迁移命令添加到脚本管理器中
mgr.add_command('mc', MigrateCommand)


if __name__ == '__main__':
    mgr.run()
